﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Cn.Edwon.Web {
    public class HttpModule:IHttpModule {
        private void Application_BeginRequest(object sender, EventArgs e) {
            HttpApplication app = (HttpApplication)sender;
            ClientHelper.Init(app.Server,app.Request);
        }

        #region IHttpModule 成员

        public void Dispose() {
            
        }

        public void Init(HttpApplication context) {
            context.BeginRequest += new EventHandler(Application_BeginRequest);
        }

        #endregion
    }
}
